//Page History is a linked list structure of pages. It's not enough to keep track of a
//url history along (URLHistory class) because the XML generator needs acsess
//to the full page object
#ifndef PAGEHISTORY_H
#define PAGEHISTORY_H

#include "Page.h"
#include "URL.h"
#include "BST.h"


class PageHistory{

      private:
            BST<Page> *PageList;	//Contains Structure for Pages

      public:
            PageHistory();
            ~PageHistory();
            bool add(Page &site);
            //Adds a given page to the history
            Page* getPage(URL &address);
            //Returns page at given index
            bool containsURL(URL &address);
            Page *getBasePage();
            LinkedList<Page>* toLinkedList();


};

#endif
